package com.lims.algorithm;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;

/**
 * <功能简述>
 *
 * @author: lims
 * @create: 2019-11-22 14:19
 */
public class Client {
    public static void main(String[] args) {
        /*Map<String, String> map = new HashMap<>();
        map.put("aa", "bb");
        JSONObject toJSON = (JSONObject) JSON.toJSON(map);
        System.out.println(JSON.toJSON(map));
        System.out.println(toJSON);*/
        List<String> list = new ArrayList<>();
        list.add("123");
        list.add("456");
        list.forEach(new Consumer<String>() {
            @Override
            public void accept(String s) {
                System.out.println(s);
            }
        });
    }
}
